﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Chromos.Actors;

namespace Chromos.ActionEngine
{
	/// <summary>
	/// A basic animated action that will go until stop is called
	/// </summary>
	public class VisualLoopingAction : VisualAction
	{
		public VisualLoopingAction(Actor actor, ContentManager content, Vector2 force, ForceType forceType, int animDelay)
			: base(actor, content, force, forceType, animDelay)
		{
		}

		protected override void applyForce()
		{
			actor.velocity += force;
		}
		protected override void unapplyForce()
		{
			actor.velocity -= force;
		}
	}
}
